﻿
using System;

namespace GFramework.Netwrok
{
    public interface INetChannel
    {
        string Name
        {
            get;
        }

        bool Connected
        {
            get;
        }

        void RegisterHandler(IMessageHandler handler);

        void Accept(string address);

        void Connect(string address);

        void Close();

        void Send<T>(T packet) where T : IMessage;
    }
}

